# -*- mode: python ; coding: utf-8 -*-

block_cipher = None

# 最简单的数据文件配置 - 只包含config.ini
datas = [
    ('config.ini', '.'),
]

# 基本隐藏导入
hiddenimports = [
    'playwright',
    'playwright.sync_api',
    'configparser',
]

a = Analysis(['main.py'],
             pathex=['.'],
             binaries=[],
             datas=datas,
             hiddenimports=hiddenimports,
             hookspath=[],
             runtime_hooks=[],
             excludes=[],
             win_no_prefer_redirects=False,
             win_private_assemblies=False,
             cipher=block_cipher,
             noarchive=False)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(pyz,
          a.scripts,
          a.binaries,
          a.zipfiles,
          a.datas,
          [],
          name='RPA_Task',
          debug=False,
          bootloader_ignore_signals=False,
          strip=False,
          upx=False,
          runtime_tmpdir=None,
          console=True)